#include <iostream>
#include <iomanip>

using namespace std;

int main_0003()
{
    int num = 0;
    cin >> num;
    num += num * 1000;
    num /=   7 * 11 * 13;
    cout << num;
    return 0;
}
